# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-arpreq
_pkgname=arpreq
pkgver=0.3.4
pkgrel=3
pkgdesc='Query the Kernel ARP cache for the MAC address corresponding to IP address.'
url='https://pypi.org/project/arpreq/#files'
arch=('x86_64' 'aarch64')
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'python-pip' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('57fad2cfed17e08143b51dd1a9892dcdb3a302cb88c0afcb38ac4b7042cc0e68429db9133cfecc1f3d64ca00c7f4de8852fc16beff29d24824dff17283c9842f')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

